//
//  BDButton.m
//  BadBoy
//
//  Created by wen on 2017/5/23.
//  Copyright © 2017年 com.8xiong. All rights reserved.
//

#import "BDButton.h"


@implementation BDButton

- (void)sendAction:(SEL)action to:(id)target forEvent:(UIEvent *)event{
    self.userInteractionEnabled = NO;
    [self performSelector:@selector(refreshEnabled) withObject:nil afterDelay:1.0];
    [super sendAction:action to:target forEvent:event];
}

//- (void)sendActionsForControlEvents:(UIControlEvents)controlEvents{
//    
//    [super sendActionsForControlEvents:controlEvents];
//}

- (void)refreshEnabled{
    self.userInteractionEnabled = YES;
}

@end
